import request from '@/utils/request';

const tenantApi = {};

tenantApi.list = () => {
	return request({
		url: '/auth-api/tenant/list',
		method: 'get',
	})
}
tenantApi.page = (params) => {
	return request({
		url: '/auth-api/tenant/page',
		method: 'get',
		params: params,
	})
}
tenantApi.add = (params) => {
	return request({
		url: '/auth-api/tenant',
		method: 'post',
		data: params,
	})
}
tenantApi.update = (params) => {
	return request({
		url: '/auth-api/tenant',
		method: 'put',
		data: params,
	})
}
tenantApi.get = (id) => {
	return request({
		url: '/auth-api/tenant/' + id,
		method: 'get',
	})
}
tenantApi.delete = (id) => {
	return request({
		url: '/auth-api/tenant/' + id,
		method: 'delete',
	})
}


export default tenantApi